package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.AgentCommentRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 购房指引
 * Created by guilin on 16/1/22.
 */
public class AgentCommentApi extends SaleApi<AgentCommentRo> {

    private int startIndex = 0;
    private int pageCount = 10;
    private String postId;

    public AgentCommentApi(Class<?> tag, Class<AgentCommentRo> aClass, IResponseListener<AgentCommentRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    @Override
    protected void setParams() {
        putParams("startIndex", startIndex);
        putParams("pageCount", 10);
        putParams("postId", postId);
    }

    @Override
    protected String getPath() {
        return "AgentComment";
    }
}
